package com.wangshb.upms.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.*;


/**
 * @author code auto
 */
@TableName("upms_role")
@Data
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UpmsRole {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    @TableId(value = "parent_id", type = IdType.AUTO)
    private Long parentId;

    /**
    *角色名称
    */
    @TableField(value = "role_name")
    private String roleName;

    /**
    *角色代码
    */
    @TableField(value = "role_code")
    private String roleCode;

    /**
    *备注
    */
    @TableField(value = "description")
    private String description;

    /**
    *是否有效,1表示有效，0表示无效
    */
    @TableField(value = "valid")
    private Integer valid;

    /**
    *是否删除,1表示删除，0表示未删除
    */
    @TableField(value = "deleted")
    private Integer deleted;

    /**
    *版本号
    */
    @Version
    @TableField(value = "version")
    private Long version;

    /**
    *创建时间
    */
    @TableField(value = "create_time")
    private java.util.Date createTime;

    /**
    *修改时间
    */
    @TableField(value = "update_time")
    private java.util.Date updateTime;

    /**
    *创建人
    */
    @TableField(value = "create_user")
    private String createUser;

    /**
    *修改人
    */
    @TableField(value = "update_user")
    private String updateUser;

}
